<!-- File: /app/View/Posts/index.ctp -->

<h1>Accounts</h1>
<table>
    <tr>
        <th>accID</th>
        <th>twitterName</th>
        <th>twitterPassword</th>
        <th>minDuaration</th>
        <th>isDeleted</th>
        <th>name</th>
    </tr>

    <!-- Here is where we loop through our $posts array, printing out post info -->

    <?php foreach ($accounts as $account): ?>
        <tr style="background-color:#FFFFFF">
            <td><?php echo $account['Account']['accID']; ?></td>
            <td>
                <?php echo $this->Html->link($account['Account']['twitterName'], array('controller' => 'accounts', 'action' => 'view', $account['Account']['accID'])); ?>
            </td>
            <td><?php echo $account['Account']['twitterPassword']; ?></td>
        </tr>
    <?php endforeach; ?>

</table>

<p>
<?php $this->Html->link('View DMs',array('controller' => 'Accounts','action'=>'viewClients')); ?>
?>
</p>